clear
use ${data}teacher_data

* Limit to Chicago region
keep if region==1


gen dontcomplete = 100-completedCorps


* Macro with only individual teacher covariates
local Xind "gpa undergrad_satmt75   major_soc major_mathScience major_humanities doubleMajor yearsSinceCollege_1_2 yearsSinceCollege_3_5 yearsSinceCollege_6p female black hispanic otherRace undergrad_sat_ms"

eststo clear
eststo: reg dontcomplete `Xind'  hs i.CorpsYear  if region==1 & CorpsYear<=2013 , robust // Not clustered because not studying a market intervention
eststo: reg step1 `Xind'  hs i.CorpsYear  if region==1 & CorpsYear<=2013 , robust 

 estout  using ${results}tableA6.txt, replace ///
	 cells(b(star fmt(2) nostar)  se(par fmt(2))) ///
	collabels(,none) stat(r2 N) 	
	
exit
